<!DOCTYPE html>
<html>
<head>
    <title>改良改善台账</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("devretreadrecord:check"))
                <i-button type="primary" @click="check"><i class="fa fa-gavel"></i>&nbsp;审核</i-button>
                #end
                #if($shiro.hasPermission("devretreadrecord:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("devretreadrecord:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("devretreadrecord:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devRetreadRecord" :rules="ruleValidate" :label-width="110">
            <!--<Form-item label="删除标识" prop="delFlag">
                <i-input v-model="devRetreadRecord.delFlag" placeholder="删除标识"></i-input>
            </Form-item>-->

            <!--<Form-item label="维修人员ID" prop="repairUserId">
                <i-input v-model="devRetreadRecord.repairUserId" placeholder="维修人员ID"></i-input>
            </Form-item>
            <Form-item label="维修人员编号" prop="repairUserCode">
                <i-input v-model="devRetreadRecord.repairUserCode" placeholder="维修人员编号"></i-input>
            </Form-item>-->
            <Form-item label="工厂核算价值" prop="accCost">
                <i-input v-model="devRetreadRecord.accCost" placeholder="工厂核算价值"></i-input>
            </Form-item>
            <Form-item label="申报节约价值" prop="lessCost">
                <i-input v-model="devRetreadRecord.lessCost" placeholder="申报节约价值"></i-input>
            </Form-item>
            <Form-item label="维修成本" prop="primeCost">
                <i-input v-model="devRetreadRecord.primeCost" placeholder="维修成本"></i-input>
            </Form-item>
            <Form-item label="零件原值" prop="origVal">
                <i-input v-model="devRetreadRecord.origVal" placeholder="零件原值"></i-input>
            </Form-item>
            <Form-item label="物料编码" prop="matterCode">
                <i-input v-model="devRetreadRecord.matterCode" placeholder="物料编码"></i-input>
            </Form-item>
            <Form-item label="数量" prop="retNum">
                <i-input v-model="devRetreadRecord.retNum" placeholder="数量"></i-input>
            </Form-item>
            <Form-item label="单位" prop="unit">
                <i-select v-model="devRetreadRecord.unit" placeholder="单位">
                    <i-option v-for="partUnit in partUnitList" :value="partUnit" :key="partUnit">{{partUnit}}</i-option>
                </i-select>
            </Form-item>
            <Form-item label="项目名称" prop="proName">
                <i-input v-model="devRetreadRecord.proName" placeholder="项目名称"></i-input>
            </Form-item>
            <Form-item label="维修人员名称" prop="repairUserName">
                <i-input v-model="devRetreadRecord.repairUserName" placeholder="维修人员名称"></i-input>
            </Form-item>
            <Form-item label="实施单位" prop="expUnit">
                <i-input v-model="devRetreadRecord.expUnit" placeholder="实施单位"></i-input>
            </Form-item>
            <Form-item label="备注信息" prop="remark">
                <i-input v-model="devRetreadRecord.remark" placeholder="备注信息" type="textarea"></i-input>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/device/devRecord.js?_${date.systemTime}"></script>
</body>
</html>
